<?php
/* @var $this CourseController */
/* @var $dataProvider CActiveDataProvider */

$this->breadcrumbs=array(
    yii::t('models/Teaching','Teachings'),
);

?>
    <div class="panel panel-box" style="overflow:hidden;">
        <div class="panel-heading">
            <h3 class="panel-title">
                <?php echo yii::t('models/Teaching','Teaching List'); ?>
            </h3>
        </div>
        <div class="panel-body" style="padding:15px">
        <?php
            $this->widget('zii.widgets.grid.CGridView', array(
	            'id'=>'teacing-grid',
                'dataProvider'=>$dataProvider,
                'columns'=>array(
                    array(
                        'class'=>'CLinkColumn',
                        'header'=>yii::t('model/Teaching','Teaching'),
                        'labelExpression'=>'$data->title',
                        'urlExpression'=>'Yii::app()->createURL("teaching/view", array("id"=>"$data->teaching_id"))',
                    ),
                    array(
                        'name'=>yii::t('other/Site','Teacher'),
                        'value'=>'$data->user->user_name',
                    ),
                ),
            ));
        ?>
        </div>
    </div>

